package by.jabbby.dataprovider;

import java.util.Date;

public class ChatEntry {

	private String message;
	private Date date;
	private String from;
	private String to;

	public ChatEntry(String msg, Date date, String from, String to) {
		this.message = msg;
		this.date = date;
		this.to = to;
		this.from = from;
	}

	public ChatEntry(String msgTxt, String from, String to) {
		this.message = msgTxt;
		this.date = new Date(System.currentTimeMillis());
		this.to = to;
		this.from = from;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

}
